home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 23
/
AACD 23.iso
/
AACD
/
Programming
/
tek
/
list
/
addtail.c
< prev
next >
Wrap
C/C++ Source or Header
|
2001-05-12
|
352b
|
23 lines
#include "tek/list.h"
/*
** TEKlib
** (C) 2001 TEK neoscientists
** all rights reserved.
**
** void TAddHead(TLIST *list, TNODE *node)
**
** add node at tail of list
**
*/
void TAddTail(TLIST *list, TNODE *node)
{
TNODE *temp = list->tailpred;
list->tailpred = node;
node->succ = (TNODE *) &list->tail;
node->pred = temp;
temp->succ = node;
}